//
//  TopScrollView.h
//  SlideSwitchDemo
//
//  Created by jiangtao on 13-10-28.
//  Copyright (c) 2013年 jiangtao. All rights reserved.
//

#import <UIKit/UIKit.h>
@protocol navigateDelegate;
@interface TopScrollView : UIScrollView <UIScrollViewDelegate>
{
    NSMutableArray *nameArray;
    NSInteger userSelectedChannelID;        //点击按钮选择名字ID
    NSInteger scrollViewSelectedChannelID;  //滑动列表选择名字ID
    
    UIImageView *shadowImageView;
    NSInteger pxlbType;
}
@property(assign) id<navigateDelegate> naviDelegate;
@property (nonatomic, retain) NSMutableArray *nameArray;
@property (nonatomic, assign) NSInteger scrollViewSelectedChannelID;

//+ (TopScrollView *)shareInstance;
//滑动撤销选中按钮
- (void)setButtonUnSelect;
//滑动选择按钮
- (void)setButtonSelect;
- (void)moveTarbutton:(UIButton *)sender;
- (id)initWithFrame:(CGRect)frame data:(NSMutableArray*)kindArr type:(NSInteger)type;

@end
@protocol navigateDelegate <NSObject>
@optional
-(void)changePage:(NSString*)kindName type:(NSInteger)type;

@end
